﻿namespace OJS.Worker
{
    /// <summary>
    /// Result of compile process
    /// </summary>
    public class CompileResult
    {
        public bool Success { get; set; }
        public string ExecutableFile { get; set; }
        public string Error { get; set; }

        /// <summary>
        /// Initial new instance of OJS.Worker.CompileResult
        /// </summary>
        /// <param name="success">Define compile process success or not</param>
        /// <param name="executable">If compile success, excutable file will be create.</param>
        public CompileResult(bool success, string executablePath = null, string error = null)
        {
            Success = success;
            ExecutableFile = executablePath;
            Error = error;
        }
    }
}
